Release 10.1A: OpenEdge Development:
Programming Interfaces
Instantiating the control
At runtime, your application uses AppBuilder-generated code to instantiate any ActiveX controls. This code (shown in following sections) uses the
CREATEWidgetstatement to realize a separate control-frame widget for each ActiveX control, initializing each control-frame with the name specified at design time. It then invokes theLoadControls()method on each control-frame COM object to instantiate the corresponding ActiveX control, loading all design time definitions from the.wrxfile.Figure 16–3 describes the instantiation process for a single ActiveX control.
Figure 16–3: Instantiating an ActiveX control at runtime
![]()
Creating the control-frame widget does not, by itself, realize the control-frame. Control-frame realization occurs only after (1) it is parented to a frame widget and (2) its
Note: The control-frame name must match the name specified at design time to allowNAMEattribute is set or itsCOM-HANDLEattribute is referenced. TheNAMEattribute is generally set first and causes realization by creating the control-frame COM object. Only then can your application use theLoadControls()method to (3) load the control into the control-frame COM object (the control container).LoadControls()to locate the specified ActiveX control in the.wrxfile.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |